<template>
   <div class="about">
      <h1>About 页面</h1>
      <button @click="goBack">返回</button>
   </div>
</template>

<script setup>
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()

onMounted(() => {
   console.log('About 挂载')
})

const goBack = () => {
   router.back()
}
</script>